package com.example.zhidao.pojo.vo.answer;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Accessors(chain = true)
    @Builder
    public class FindMyCollectedAIAndNormalAnswersPagesRequest {
        @NotNull
        @Size(min = 4, max = 20, message = "用户名长度必须在 4-20 之间")
        @Pattern(regexp = "^[a-zA-Z\\d_]*$", message = "用户名只能包含大小写字母,数字,下划线")
        String username;
        @NotNull
        private Integer page;
        @NotNull
        private Integer pageSize;
    }

